﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_ThongTinThemChuyenDiaDiem : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("cmdChuyen")]
        private Button _cmdChuyen;
        [AccessedThroughProperty("cmdHuyChuyen")]
        private Button _cmdHuyChuyen;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("txtDiaDiemCu")]
        private TextBox _txtDiaDiemCu;
        [AccessedThroughProperty("txtDiaDiemMoi")]
        private TextBox _txtDiaDiemMoi;
        [AccessedThroughProperty("txtNgayChuyen")]
        private DateTimePicker _txtNgayChuyen;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private ThongTinCongTy objTT;
        private DataTable pData;

        public Frm_ThongTinThemChuyenDiaDiem()
        {
            base.Load += new EventHandler(this.Frm_ThongTinThemChuyenDiaDiem_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objTT = new ThongTinCongTy();
            this.InitializeComponent();
        }

        private void cmdChuyen_Click(object sender, EventArgs e)
        {
            this.objTT.ChuyenDiaDiem(LVYModule.Date2Char(this.txtNgayChuyen.Text), this.txtDiaDiemMoi.Text);
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_ThongTinThemChuyenDiaDiem_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.txtNgayChuyen.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
                this.txtDiaDiemCu.Text = modGeneral.H_ADDRESSVIET;
                this.txtDiaDiemCu.ReadOnly = true;
                this.LoadListChuyenDD();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_ThongTinThemChuyenDiaDiem));
            this.Label1 = new Label();
            this.Label2 = new Label();
            this.txtDiaDiemMoi = new TextBox();
            this.txtNgayChuyen = new DateTimePicker();
            this.Panel1 = new Panel();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.cmdHuyChuyen = new Button();
            this.cmdChuyen = new Button();
            this.Panel2 = new Panel();
            this.C1DockingTab2 = new C1DockingTab();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.Label3 = new Label();
            this.txtDiaDiemCu = new TextBox();
            this.Panel1.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.VSlist.BeginInit();
            this.Panel2.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab2).BeginInit();
            this.C1DockingTab2.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.SuspendLayout();
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            Point point = new Point(0x11, 12);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            Size size = new Size(0x90, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0;
            this.Label1.Text = "Ng\x00e0y th\x00e1ng chuyển địa điểm";
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0x11, 0x44);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x8e, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0;
            this.Label2.Text = "Địa chỉ mới khi xuất h\x00f3a đơn";
            point = new Point(0xb8, 0x41);
            this.txtDiaDiemMoi.Location = point;
            this.txtDiaDiemMoi.Name = "txtDiaDiemMoi";
            size = new Size(0x1fb, 20);
            this.txtDiaDiemMoi.Size = size;
            this.txtDiaDiemMoi.TabIndex = 1;
            this.txtNgayChuyen.Format = DateTimePickerFormat.Short;
            point = new Point(0xb8, 11);
            this.txtNgayChuyen.Location = point;
            this.txtNgayChuyen.Name = "txtNgayChuyen";
            size = new Size(0x56, 20);
            this.txtNgayChuyen.Size = size;
            this.txtNgayChuyen.TabIndex = 0x44;
            DateTime time = new DateTime(0x7d7, 11, 1, 0, 0, 0, 0);
            this.txtNgayChuyen.Value = time;
            this.Panel1.Controls.Add(this.C1DockingTab1);
            this.Panel1.Dock = DockStyle.Fill;
            point = new Point(0, 0x9e);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x2cf, 0xeb);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0x45;
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            point = new Point(0, 0);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            size = new Size(0x2cf, 0xeb);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.VSlist);
            this.C1DockingTabPage1.Controls.Add(this.cmdHuyChuyen);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x2cd, 0xd1);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Danh s\x00e1ch chuyển địa điểm";
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = "2,0,0,0,0,90,Columns:0{Caption:\"Ng\x00e0y chuyển\";}\t1{Width:310;Caption:\"Địa chỉ chuyển tới\";}\t";
            this.VSlist.Dock = DockStyle.Top;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.MaxSize = 0x13;
            this.VSlist.Rows.MinSize = 0x13;
            size = new Size(0x2cd, 0xa6);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x48;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.cmdHuyChuyen.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.cmdHuyChuyen.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x24a, 0xac);
            this.cmdHuyChuyen.Location = point;
            this.cmdHuyChuyen.Name = "cmdHuyChuyen";
            size = new Size(0x69, 0x19);
            this.cmdHuyChuyen.Size = size;
            this.cmdHuyChuyen.TabIndex = 0x47;
            this.cmdHuyChuyen.Text = "Hủy chuyển";
            this.cmdHuyChuyen.UseVisualStyleBackColor = true;
            this.cmdChuyen.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.cmdChuyen.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x24a, 0x5b);
            this.cmdChuyen.Location = point;
            this.cmdChuyen.Name = "cmdChuyen";
            size = new Size(0x69, 0x19);
            this.cmdChuyen.Size = size;
            this.cmdChuyen.TabIndex = 70;
            this.cmdChuyen.Text = "Chọn";
            this.cmdChuyen.UseVisualStyleBackColor = true;
            this.Panel2.Controls.Add(this.C1DockingTab2);
            this.Panel2.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x2cf, 0x9e);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 0x47;
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab2.Dock = DockStyle.Fill;
            point = new Point(0, 0);
            this.C1DockingTab2.Location = point;
            this.C1DockingTab2.Name = "C1DockingTab2";
            size = new Size(0x2cf, 0x9e);
            this.C1DockingTab2.Size = size;
            this.C1DockingTab2.TabIndex = 0;
            this.C1DockingTab2.TabsSpacing = 5;
            this.C1DockingTab2.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage2.Controls.Add(this.cmdChuyen);
            this.C1DockingTabPage2.Controls.Add(this.Label1);
            this.C1DockingTabPage2.Controls.Add(this.Label3);
            this.C1DockingTabPage2.Controls.Add(this.Label2);
            this.C1DockingTabPage2.Controls.Add(this.txtDiaDiemCu);
            this.C1DockingTabPage2.Controls.Add(this.txtDiaDiemMoi);
            this.C1DockingTabPage2.Controls.Add(this.txtNgayChuyen);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x2cd, 0x84);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 0;
            this.C1DockingTabPage2.Text = "Chuyển sang địa điểm mới";
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(0x11, 0x2a);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x37, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0;
            this.Label3.Text = "Địa chỉ cũ";
            point = new Point(0xb8, 0x27);
            this.txtDiaDiemCu.Location = point;
            this.txtDiaDiemCu.Name = "txtDiaDiemCu";
            size = new Size(0x1fb, 20);
            this.txtDiaDiemCu.Size = size;
            this.txtDiaDiemCu.TabIndex = 1;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x2cf, 0x189);
            this.ClientSize = size;
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.Panel2);
            this.Name = "Frm_ThongTinThemChuyenDiaDiem";
            this.Text = "CHUYEN DIA DIEM";
            this.Panel1.ResumeLayout(false);
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.VSlist.EndInit();
            this.Panel2.ResumeLayout(false);
            ((ISupportInitialize) this.C1DockingTab2).EndInit();
            this.C1DockingTab2.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.C1DockingTabPage2.PerformLayout();
            this.ResumeLayout(false);
        }

        private void LoadListChuyenDD()
        {
            this.pData = this.objTT.GetList();
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            int num2 = this.pData.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSlist.AddItem("");
                vSlist[vSlist.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(this.pData.Rows[i]["NgayChuyen"]);
                vSlist[vSlist.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.pData.Rows[i]["DiaChiViet"]);
            }
            vSlist = null;
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual Button cmdChuyen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._cmdChuyen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.cmdChuyen_Click);
                if (this._cmdChuyen != null)
                {
                    this._cmdChuyen.Click -= handler;
                }
                this._cmdChuyen = value;
                if (this._cmdChuyen != null)
                {
                    this._cmdChuyen.Click += handler;
                }
            }
        }

        internal virtual Button cmdHuyChuyen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._cmdHuyChuyen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._cmdHuyChuyen = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual TextBox txtDiaDiemCu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtDiaDiemCu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtDiaDiemCu = value;
            }
        }

        internal virtual TextBox txtDiaDiemMoi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtDiaDiemMoi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtDiaDiemMoi = value;
            }
        }

        internal virtual DateTimePicker txtNgayChuyen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtNgayChuyen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtNgayChuyen = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSlist = value;
            }
        }
    }
}

